<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简易待办清单</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="container">
        <header>
            <h1><i class="fas fa-check-circle"></i> 我的待办清单</h1>
        </header>

        <div class="add-todo">
            <input type="text" id="todoInput" placeholder="添加新的待办事项..." maxlength="100">
            <button id="addBtn"><i class="fas fa-plus"></i> 添加</button>
        </div>

        <div class="todo-stats">
            <span>总计: <span id="totalCount">0</span></span>
            <span>已完成: <span id="completedCount">0</span></span>
            <span>待完成: <span id="pendingCount">0</span></span>
        </div>

        <ul id="todoList" class="todo-list">
            <!-- 待办事项将在这里动态生成 -->
        </ul>

        <div id="emptyState" class="empty-state" style="display: none;">
            <i class="fas fa-clipboard-list"></i>
            <p>暂无待办事项，开始添加吧！</p>
        </div>
    </div>

    <script src="app.js"></script>
</body>
</html>
